<section class="scrollable padder-lg" data-ng-controller="CarDetailController">
    <div class="m-b-md">
        <a href="" class="btn btn-rounded btn-sm btn-icon btn-default pull-right" data-ng-click="close()">
            <i class="fa fa-reply"></i>
        </a>
        <h3 class="m-b-none text-primary">
            <i class="fa fa-twitter"></i>
            &nbsp;我的车辆
        </h3>
    </div>

    <!--普通用户信息编辑 -->
    <section class="panel panel-default">
        <div class="panel-body">
            <form class="form-horizontal">

                <div class="form-group">
                    <label for="carnum" class="col-sm-2 control-label">车牌号码</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="carnum" placeholder="车牌号码" data-ng-model="car.carnum">
                        <input ng-if="isEdit" disabled type="text" class="form-control" id="carnum" placeholder="车牌号码" data-ng-model="car.carnum">
                    </div>
                </div>


                <div class="form-group">
                    <label for="cartype" class="col-sm-2 control-label">车型号</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="cartype" placeholder="车型号" data-ng-model="car.cartype">
						<input ng-if="isEdit" disabled  type="text" class="form-control" id="cartype" placeholder="车型号" data-ng-model="car.cartype">
                    </div>
                </div>

               <div class="form-group">
                    <label for="carzj" class="col-sm-2 control-label">车轴距</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="carzj" placeholder="车轴距" data-ng-model="car.carzj">
                        <input ng-if="isEdit" disabled type="text" class="form-control" id="carzj" placeholder="车轴距" data-ng-model="car.carzj">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carpl" class="col-sm-2 control-label">排量</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="carpl" placeholder="排量" data-ng-model="car.carpl">
						<input ng-if="isEdit" disabled type="text" class="form-control" id="carpl" placeholder="排量" data-ng-model="car.carpl">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carcolor" class="col-sm-2 control-label">颜色</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="carcolor" placeholder="颜色" data-ng-model="car.carcolor">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carbrand" class="col-sm-2 control-label">品牌</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="carbrand" placeholder="品牌" data-ng-model="car.carbrand">
						<input ng-if="isEdit" disabled type="text" class="form-control" id="carbrand" placeholder="品牌" data-ng-model="car.carbrand">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carlen" class="col-sm-2 control-label">长度</label>
                    <div class="col-sm-10">
                        <input  ng-if="!isEdit"  type="text" class="form-control" id="carlen" placeholder="长度" data-ng-model="car.carlen">
						<input ng-if="isEdit" disabled type="text" class="form-control" id="carlen" placeholder="长度" data-ng-model="car.carlen">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carwid" class="col-sm-2 control-label">宽度</label>
                    <div class="col-sm-10">
                        <input  ng-if="!isEdit" type="text" class="form-control" id="carwid" placeholder="宽度" data-ng-model="car.carwid">
						<input  ng-if="isEdit" disabled type="text" class="form-control" id="carwid" placeholder="宽度" data-ng-model="car.carwid">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carrpnum" class="col-sm-2 control-label">行驶证号</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit"  type="text" class="form-control" id="carrpnum" placeholder="行驶证号" data-ng-model="car.carrpnum">
						 <input ng-if="isEdit" disabled type="text" class="form-control" id="carrpnum" placeholder="行驶证号" data-ng-model="car.carrpnum">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carrtime" class="col-sm-2 control-label">行驶时间</label>
                    <div class="col-sm-10">
                        <input  ng-if="!isEdit" type="text" class="form-control" id="carrtime" placeholder="行驶时间" data-ng-model="car.carrtime">
						<input ng-if="isEdit" disabled type="text" class="form-control" id="carrtime" placeholder="行驶时间" data-ng-model="car.carrtime">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carprice" class="col-sm-2 control-label">车价</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit" type="text" class="form-control" id="carprice" placeholder="车价" data-ng-model="car.carprice">
						<input ng-if="isEdit" disabled type="text" class="form-control" id="carprice" placeholder="车价" data-ng-model="car.carprice">
                    </div>
                </div>

                <div class="form-group">
                    <label for="carznum" class="col-sm-2 control-label">荷载人数</label>
                    <div class="col-sm-10">
                        <input ng-if="!isEdit"  type="text" class="form-control" id="carznum" placeholder="荷载人数" data-ng-model="car.carznum">
						<input  ng-if="isEdit" disabled  type="text" class="form-control" id="carznum" placeholder="荷载人数" data-ng-model="car.carznum">
                    </div>
                </div>


                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button ng-click="saveObj()" class="btn btn-primary">提交</button>

                        <button ng-if="isEdit && car.isEffect!='delete'" ng-click="delCar()" class="btn btn-danger">注销车辆</button>
                        <button ng-if="isEdit && car.isEffect=='delete'"  class="btn btn-danger">注销中</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
</section>